package bean.caculate;


import bean.actor.BaseActor;

public class ReportFizzWhizzStudent extends AbstractCaculator {
    public static final String REPORT = "FizzWhizz";

    @Override
    boolean canCaculate(BaseActor baseActor) {
        return baseActor.getNo()%3 == 0 && baseActor.getNo()%7 == 0;
    }

    @Override
    BaseActor handle(BaseActor baseActor) {
        baseActor.setReport(REPORT);
        return baseActor;
    }
}
